<?php

/*------------------------------------------------
*
*   Explay Engine Content Management System.
*   Copyright © 2008 Golovdinov Alexander.
*
*-------------------------------------------------
*
*   Official site: wwww.alex-home.spb.ru/explay.html
*   Contact e-mail: golovdinov@gmail.com
*
*   GNU General Public License original source:
*   http://www.gnu.org/licenses/gpl-3.0.html
*
------------------------------------------------*/

if (!defined ('EXPLAY')) exit;
 
//error_reporting (E_ALL);

if (!empty($_GET['page'])) $start = (intval ($_GET['page']) - 1) * 30;
else $start = 0;


past_navblock (array (
					array ('Написать статью', '/my_articles/add/', 'cat', 'add'),
					array ('Поиск по тегам', '/articles/tags/', 'cat', 'tags'),
					array ('Комментарии', '/art_comments/', 'name', 'art_comments'),
					array ('TOP блогов', '/top/', 'name', 'top')
				)
			);

include $_SERVER['DOCUMENT_ROOT'].'/modules/comments/comments.class.php';
	
$oComments = new commnetsList;
$oComments->add_filter ('com_category', 'articles');
	
$oComments->build_advanced_articles_comments ($start, '', 'com_id');
print Templater::display ('articles/module_comments_header.tpl');
print $oComments->show_data ();

